@import "../styles/variable.scss";

.yui-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: $dialog-zIndex-content;
  transform: translate(-50%, -50%);
  min-width: 400px;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px 0 rgba($B000, 0.1), 0 4px 4px 0 rgba($B000, 0.12);
  background: $B000;
  &-close {
    position: absolute;
    right: 18px;
    top: 18px;
    cursor: pointer;
  }
  &-header {
    color: $B900;
    font-size: $font-size-lg;
    font-weight: $font-weight;
  }
  &-main {
    margin: 20px 0 0;
  }
  &-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 20px;
    button {
      cursor: pointer;
    }
    > button {
      margin-left: 10px;
    }
  }
  &-mask {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: $dialog-zIndex-mask;
    width: 100%;
    height: 100%;
    background: rgba($B900, 0.3);
  }
}
